package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShangjiabaomingMapper;
import com.ruoyi.system.domain.Shangjiabaoming;
import com.ruoyi.system.service.IShangjiabaomingService;

/**
 * 商家报名活动Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-10
 */
@Service
public class ShangjiabaomingServiceImpl implements IShangjiabaomingService 
{
    @Autowired
    private ShangjiabaomingMapper ShangjiabaomingMapper;
    @Autowired
    private ShangjiabaomingMapper shangjiabaomingMapper;

    /**
     * 查询商家报名活动
     * 
     * @param sjbmHdid 商家报名活动主键
     * @return 商家报名活动
     */
    @Override
    public Shangjiabaoming selectShangjiabaomingBySjbmHdid(Long sjbmHdid)
    {
        return shangjiabaomingMapper.selectShangjiabaomingBySjbmHdid(sjbmHdid);
    }

    /**
     * 查询商家报名活动列表
     * 
     * @param shangjiabaoming 商家报名活动
     * @return 商家报名活动
     */
    @Override
    public List<Shangjiabaoming> selectShangjiabaomingList(Shangjiabaoming shangjiabaoming)
    {
        return shangjiabaomingMapper.selectShangjiabaomingList(shangjiabaoming);
    }

    @Override
    public List<Shangjiabaoming> selectleixingname(Shangjiabaoming shangjiabaoming) {
        return shangjiabaomingMapper.selectleixingname(shangjiabaoming);
    }

    /**
     * 新增商家报名活动
     * 
     * @param shangjiabaoming 商家报名活动
     * @return 结果
     */
    @Override
    public int insertShangjiabaoming(Shangjiabaoming shangjiabaoming)
    {
        return shangjiabaomingMapper.insertShangjiabaoming(shangjiabaoming);
    }

    /**
     * 修改商家报名活动
     * 
     * @param shangjiabaoming 商家报名活动
     * @return 结果
     */
    @Override
    public int updateShangjiabaoming(Shangjiabaoming shangjiabaoming)
    {
        return shangjiabaomingMapper.updateShangjiabaoming(shangjiabaoming);
    }

    /**
     * 批量删除商家报名活动
     * 
     * @param sjbmHdids 需要删除的商家报名活动主键
     * @return 结果
     */
    @Override
    public int deleteShangjiabaomingBySjbmHdids(Long[] sjbmHdids)
    {
        return shangjiabaomingMapper.deleteShangjiabaomingBySjbmHdids(sjbmHdids);
    }

    /**
     * 删除商家报名活动信息
     * 
     * @param sjbmHdid 商家报名活动主键
     * @return 结果
     */
    @Override
    public int deleteShangjiabaomingBySjbmHdid(Long sjbmHdid)
    {
        return shangjiabaomingMapper.deleteShangjiabaomingBySjbmHdid(sjbmHdid);
    }
}
